﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;

namespace 动物
{
    class Program
    {
        static void Main(string[] args)
        {
            Animal animal = new Animal(Console.ReadLine());
            animal.i++;
            Cat cat = new Cat(Console.ReadLine());
            animal.i++;
            Mouse mouse = new Mouse(Console.ReadLine());
            animal.i++;

            Hashtable ht = new Hashtable();

            ht.Add(animal.getname(), animal.Action());
            ht.Add(cat.getname(), cat.Action());
            ht.Add(mouse.getname(), mouse.Action());

            foreach (string keys in ht.Keys)
            {
                Console.WriteLine(keys + "   " + ht[keys]);
            }
            animal.Count();

            Console.ReadLine();
        }
    }
}
